package com.twu.biblioteca.view;

import com.twu.biblioteca.model.BibliotecaUser;

public class InfoView {

    public static String transformToString(BibliotecaUser user) {
        String correctInfo = "user : "+user.getUserName() + "\nemail : "+user.getEmail()+"\nphone number : "+ user.getPhoneNumber();
        String errorInfo = "sorry , no user loged in currently !";
        return user == null? errorInfo:correctInfo;
    }
}
